#include "Point2.h"

Point2::Point2() :_x(0), _y(0){}

Point2::Point2(int x, int y) :
_x(x), _y(y){}

bool operator == (const Point2& p1, const Point2& p2)
{
	return ((p1._x == p2._x) && (p1._z == p2._z));
}

bool operator != (const Point2& p1, const Point2& p2)
{
	return !(p1 == p2);
}

bool operator >	 (const Point2& p1, const Point2& p2)
{
	if (p1._x <= p2._x) return false;
	if (p1._y <= p2._y) return false;

	return true;
}

bool operator <  (const Point2& p1, const Point2& p2)
{
	if (p1._x >= p2._x) return false;
	if (p1._y >= p2._y) return false;

	return true;
}

bool operator >= (const Point2& p1, const Point2& p2)
{
	return !(p1 < p2);
}

bool operator <= (const Point2& p1, const Point2& p2)
{
	return !(p1 > p2);
}